Olympiad Singapore algebra Problem